<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');

if (!function_exists('nl2br_except_pre')) {
	function nl2br_except_pre($str)
	{
		$CI = &get_instance();
		$CI->load->library('typography');
		return $CI->typography->nl2br_except_pre($str);
	}
}

if (!function_exists('auto_typography')) {
	function auto_typography($str, $reduce_linebreaks = false)
	{
		$CI = &get_instance();
		$CI->load->library('typography');
		return $CI->typography->auto_typography($str, $reduce_linebreaks);
	}
}

if (!function_exists('entity_decode')) {
	function entity_decode($str, $charset = NULL)
	{
		return get_instance()->security->entity_decode($str, $charset);
	}
}

?>
